package com.epi.web.log.Impl;


import com.epi.web.log.MDCDemo;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author dxy
 * @version 1.0
 */
public class Log4j2Logger {

    private static final Logger log = LogManager.getLogger(Log4j2Logger.class);

    public static void main(String[] args) {
        MDCDemo.mdcTest();
        log.fatal("FATAL: 极其严重的错误");
        log.error("ERROR: 错误信息");
        log.warn("WARN: 警告信息");
        log.info("INFO: 一般信息");
        log.debug("DEBUG: 调试信息");
        log.trace("TRACE: 跟踪信息");
    }

}
